import { Local } from '@/utils/utils'

const LANGUAGE = 'LANGUAGE' // 语言
const VERSION = 'VERSION' // 版本

export const setLang = (lang: 'zh' | 'en'): void => {
  Local.set(LANGUAGE, lang)
}
export const getLang = (): 'zh' | 'en' => {
  return Local.get(LANGUAGE)
}

export const setVersion = (version: string): void => {
  Local.set(VERSION, version)
}
export const getVersion = (): string => {
  return Local.get(VERSION)
}
